package com.drx.my.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

import javax.servlet.http.HttpServletRequest;

@Controller
@RequestMapping("")
public class IndexController {
	
	/**
	 * 首页地址
	 */
	private static final String INDEX = "index";
	
	/**
	 * 资料类型地址
	 */
	private static final String TYPE = "type";
	
	/**
	 * 武器使用方法地址
	 */
	private static final String USINGMETHOD = "usingmethod";
	
	private Map<String,List> methodUrlMap = new HashMap<String,List>();
	/**
	 * 进入介绍页
	 * @return
	 */
	@RequestMapping("/index")
	public ModelAndView index(){
		ModelAndView mav = new ModelAndView(INDEX);
		return mav;
	}
	
	/**
	 * 进入资料类型选择页
	 * @return
	 */
	@RequestMapping("/type")
	public ModelAndView type(){
		ModelAndView mav = new ModelAndView(TYPE);
		return mav;
	}
	
	/**
	 * 进入武器使用方法介绍页
	 * 
	 */
	@RequestMapping("/usingMethod")
	public ModelAndView usingMehtod(HttpServletRequest req){
		ModelAndView mav = new ModelAndView(USINGMETHOD);
		List urlList = new ArrayList();
		
		return mav;
	}
}
